package kit;

import data.ApplicationProperties;

/**
 * Class: CymbalComponent.java
 * Description: Wrapper class for all pre-defined cymbal components.
 * @author et
 */
public class CymbalComponent extends Component
{
    /**
     * Constructor for CymbalComponent.
     * @param assignment - the assignment for this component.
     * @param name - the name of the component.
     * @param shortName - the short name of the component
     * @param regHit - the regular hit.
     */
	public CymbalComponent(int assignment, String name, String shortName, char regHit)
    {
		super(assignment, name, shortName, regHit);
	}

    /**
     * Sets up the optional settings for a cymbal component.
     */
    protected void setOptionalSettings()
    {
        setLowVelocityDetection(false);
        setHighVelocityDetection(true);
        setLowVelocity(ApplicationProperties.EMPTY_VALUE);
        setHighVelocity(75);
        setLowHit(' ');
        setHighHit('X');
        setFlamDetection(false);
        setFlamHit(' ');
        setFlamTime(ApplicationProperties.EMPTY_VALUE);
        setChokeTime(50);
        setChokeDetection(true);
        setChokeHit('#');
    }
}